package com.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor()
@TableName("sys_menu")
public class SysMenu {
    //CREATE TABLE sys_menu (
    //    id INT PRIMARY KEY AUTO_INCREMENT,
    //    menu_name VARCHAR(50) NOT NULL COMMENT '菜单名称',
    //    parent_id INT DEFAULT 0 COMMENT '父菜单ID',
    //    path VARCHAR(100) COMMENT '路由路径',
    //    icon VARCHAR(50) COMMENT '菜单图标',
    //    sort_order INT DEFAULT 0 COMMENT '排序号',
    //    visible TINYINT(1) DEFAULT 1 COMMENT '是否显示'
    //) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String menuName;
    private Integer parentId;
    private String path;
    private String icon;
    private Integer sortOrder;

    private Integer visible;
}
